package top.healthylife.gateway.platform.baihang.api.api.operatorproduct;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.baihang.api.util.BaiHangHttpUtil;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu002.req.BHReqTwoElementsCertNoDto;
import top.healthylife.gateway.platform.baihang.dto.operatorproduct.mbasu002.res.BHResTwoElementsCertNoDto;

/**
 * 手机二要素证件号码核验
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "手机二要素证件号码核验" , info = "核验手机号+证件号是否一致（支持电信、联通、移动）")
public class BHTwoElementsCertNoApi implements ParentFace<BHReqTwoElementsCertNoDto, BHResTwoElementsCertNoDto> {

    private static final String PRODUCT_CODE = "MBASUT02";

    @Override
    public BHResTwoElementsCertNoDto execute(BHReqTwoElementsCertNoDto reqDto){
        return BaiHangHttpUtil.httpPostRequest(reqDto,PRODUCT_CODE, BHResTwoElementsCertNoDto.class);
    }
}
